package com.ruoyi.job.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.job.api.domain.SysJob;
import com.ruoyi.job.api.factory.RemoteJobFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * 用户服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteJobService", value = ServiceNameConstants.JOB_SERVICE, fallbackFactory = RemoteJobFallbackFactory.class)
public interface RemoteJobService {

    /**
     * 通过用户名查询用户信息
     *
     * @param job 任务表
     * @return 结果
     */
    @PostMapping("/job")
    public AjaxResult add(@RequestBody SysJob job);

}
